package com.bosch.in.rtp1.ept.dao;

import java.sql.SQLException;
import java.util.List;

import com.bosch.in.rtp1.ept.model.dto.ReleasedHold;
import com.bosch.in.rtp1.ept.model.technical.Condition4ReleasedHold;

public interface ReleasedHoldDao {

	/**
	 * Query to get list of released holds. 
	 * @param condition		pagination condition
	 * @return list of released holds
	 * @throws SQLException
	 */
	List<ReleasedHold> getReleasedHolds(Condition4ReleasedHold condition) throws SQLException;
	
	/**
	 * Update ReleaseHolds
	 * @param releaseHolds list to be updated
	 * @return	true if success
	 * @throws SQLException
	 */
	boolean updateReleasedHolds(List<ReleasedHold> releaseHolds) throws SQLException;
}
